package com.yanftch.hdc_tools.action;

import com.intellij.openapi.actionSystem.AnActionEvent;
import com.intellij.openapi.project.Project;
import com.yanftch.hdc_tools.command.HdcToolKit;
import com.yanftch.hdc_tools.common.MessageDelegate;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;


public class CopyToPasteAction extends BaseAction {

    @Override
    public void actionPerformed(@NotNull AnActionEvent action, @Nullable Project project) {
        if (project == null) {
            MessageDelegate.INSTANCE.error("未知异常...", action);
            return;
        }
        HdcToolKit.INSTANCE.copyStringToPaste(project, action);
    }
}
